<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 / 注册</title>
    <link rel="stylesheet" href="../../../node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="./index.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#8B4513',
                        secondary: '#D2691E'
                    },
                    borderRadius: {
                        'none': '0px',
                        'sm': '2px',
                        DEFAULT: '4px',
                        'md': '8px',
                        'lg': '12px',
                        'xl': '16px',
                        '2xl': '20px',
                        '3xl': '24px',
                        'full': '9999px',
                        'button': '4px'
                    }
                }
            }
        }
    </script>
    <style>
        .bg-glass {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
        }

        .input-underline {
            border: none;
            border-bottom: 1px solid #8B4513;
            background: transparent;
        }

        .input-underline:focus {
            outline: none;
            border-bottom: 2px solid #8B4513;
        }

        .login-card {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        body {
            background-image: url('https://ai-public.mastergo.com/ai/img_res/ae2fd54d52724228946895eb594d3e81.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 1024px;
        }
    </style>
</head>

<body class="flex items-center justify-center min-h-screen">
    <span class="alert"></span>
    <div class="login-card bg-glass rounded-xl p-8 w-[420px] mx-4">
        <div class="text-center mb-8">
            <h1 class="font-['Pacifico'] text-3xl text-primary mb-2">AI Poetry Assistant</h1>
            <p class="text-gray-600">欢迎回来，请登录您的账号</p>
        </div>
        <form class="space-y-6">
            <div class="relative">
                <i class="fas fa-user absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                <input type="text" placeholder="用户名 / 手机号" class="input-underline w-full px-10 py-3 text-sm" />
            </div>
            <div class="relative">
                <i class="fas fa-lock absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                <input type="password" placeholder="密码" class="input-underline w-full px-10 py-3 text-sm" />
                <i
                    class="fas fa-eye absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 cursor-pointer"></i>
            </div>
            <div class="flex justify-between text-sm">
                <label class="flex items-center text-gray-600">
                    <input type="checkbox" class="mr-2">
                    记住我
                </label>
                <a href="#" class="text-primary hover:text-secondary">忘记密码？</a>
            </div>
            <button
                class="w-full bg-primary hover:bg-secondary text-white py-3 !rounded-button transition duration-300 whitespace-nowrap">
                登录
            </button>

            <div class="text-center text-sm">
                <span class="text-gray-600">还没有账号？</span>
                <a href="../register/index.html" class="text-primary hover:text-secondary ml-1">立即注册</a>
            </div>
            <div class="relative flex items-center justify-center my-6">
                <div class="border-t border-gray-300 absolute w-full"></div>
                <span class="px-4 text-sm text-gray-500 relative">其他登录方式</span>
            </div>
            <div class="flex justify-center space-x-6">
                <a href="#"
                    class="w-10 h-10 rounded-full flex items-center justify-center border border-gray-300 hover:border-primary transition duration-300">
                    <i class="fab fa-weixin text-xl text-[#07C160]"></i>
                </a>
                <a href="#"
                    class="w-10 h-10 rounded-full flex items-center justify-center border border-gray-300 hover:border-primary transition duration-300">
                    <i class="fab fa-qq text-xl text-[#12B7F5]"></i>
                </a>
                <a href="#"
                    class="w-10 h-10 rounded-full flex items-center justify-center border border-gray-300 hover:border-primary transition duration-300">
                    <i class="fab fa-weibo text-xl text-[#E6162D]"></i>
                </a>
            </div>
        </form>
    </div>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="../../utils/alert.js"></script>
    <script src="../../utils/request.js"></script>
    <script src="./index.js"></script>
</body>

</html>